package cn.panda.edu.dao;

import cn.panda.edu.model.Judge;

import java.util.List;

/**
 * 
 * 类描述：对判断题的操作
 * 
 */
public interface JudgeMapper {
	/**
	 * 
	* @Title: listJudgeByCourseId 
	* @Description: 根据课程id获取该课程对应的判断题
	* @param courseId
	* @return  
	* List<Judge>
	 */
	List<Judge> listJudgeByCourseId(Integer courseId);

	/**
	 * 
	* @Title: listJudgeBySectionTestId 
	* @Description: 根据章节测试id获取对应的判断题
	* @param sectionTestId
	* @return  
	* List<Judge>
	 */
	List<Judge> listJudgeBySectionTestId(Integer sectionTestId);
	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 根据题目编号删除
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	int deleteByPrimaryKey(Integer judgeId);

	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 添加判断题
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	int insert(Judge record);

	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 动态添加判断题
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	int insertSelective(Judge record);

	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 根据题目编号查询判断题
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	Judge selectByPrimaryKey(Integer judgeId);

	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 动态更新判断题
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	int updateByPrimaryKeySelective(Judge record);

	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 更新判断题
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	int updateByPrimaryKey(Judge record);
}